<include file="Public:head" />
<style>
    tr td{
        text-align: center;
    }
    .more-wrapper a{
        cursor: pointer;
    }
    .mingchen{
        width: 300px;
        overflow: hidden;
        display: inline-block;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
</style>
<body class="overflow-hidden">
<div class="wrapper preload">
    <include file="Public:header" />
    <include file="Public:left" />
		<style>
.cover2 {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    position: fixed;
    z-index: 1001;
    display: none;
}
.alert {
    width: 430px;
    height: 230px;
    background: #fff;
    box-shadow: 2px 2px 3px #c5c7c8;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-top: -130px;
    margin-left: -183px;
    padding: 0;
}
.close-con {
    width: 100%;
    height: 38px;
}
.close {
    width: 10px;
    height: 10px;
    background: url("../images/close.png") no-repeat;
    margin-right: 10px;
    margin-top: 10px;
}
.right {
    float: right;
}
.alert-span {
    padding: 40px 34px;
    font-size: 14px;
    color: #333;
    text-align: center;
}.btn-con {
    width: 100%;
    height: 68px;
    padding: 0 34px;
}.mg-left70 {
    margin-left: 70px;
}.yes {
    width: 100px;
    background: #40bcb0;
}.btn {
    width: 76px;
    height: 50px;
    background: #808aa4;
    font-size: 13px;
    color: #fff;
}
	#searchin td{
		text-align: right;
		padding-top:5px;
		padding-right:0px
	}
</style>
<script>
$(document).ready(function(){
	$('.show_baogao').click(function(){
		var qurenneirong = $( this ).attr('title');
		$('.alert-span').text(qurenneirong);
		$('.cover2').show();
	})

	$('.guanbi_close').click(function(){
		$('.cover2').hide();
	})

})
</script>
	<div class="cover2">
    <div class="alert br4">
        <div class="close-con clearfix">
            <div class="close right guanbi_close">关闭</div>
        </div>
        <div class="alert-span"></div>
        <div class="btn-con">
            <!--<div class="btn yes mg-left70 baocun_yes">确定</div>-->
        </div>
    </div>
	</div>
    <div class="main-container">
        <div class="padding-md">
            <div class="row">
                <div class="col-sm-12">
                    <div class="page-title">
                        {$meta_title}
                    </div>
                </div>
            </div>
            <div class="col-sm-12 row chach">
                <form action="__SELF__" method="get">
                    <!-- <div class="right_select"> -->
                        <!-- <input name="cxh" type="text" placeholder="查新号" value="{$map['cxh']}"  class="form-control width20"style="width: 150px" > -->
                        <!-- <input name="xmmc" type="text" placeholder="项目名称" value="{$xmmc}" class="form-control width20" style="margin-left: 20px"> -->
                    <!-- </div> -->
                    <!-- <button type="submit" class="action-button">查询</button> -->
					
					<div style="height:300px;MARGIN-TOP:10PX">
						<table id='searchin'>
							<tr>
								<td>查新编号：</td>
								<td><input type="text" name="cxh" style="width: 200px;border: 1px solid #ccc;height: 34px;" value="<?=$cxh?>"> </td>
								<td>校区：</td>
								<td>
								<select name="sarea"  style="width: 200px;border: 1px solid #ccc;height: 34px;">
									
									<option  value=''>请选择</option>
									 <foreach name="arrSchool" item="vo_menu" >
									<option  value="{$vo_menu['id']}" <if condition="$sarea eq $vo_menu['id']">selected</if>>{$vo_menu['name']}</option>
									</foreach>
								</select>
								</td>
							</tr>
							<tr>	
								<td>查新员：</td>
								<td><input type="text" name="cx_user_name" style="width: 200px;border: 1px solid #ccc;height: 34px;" value="<?=$cx_user_name?>"></td>
							
								<td>审核员：</td>
								<td><input type="text" name="sh_user_name" style="width: 200px;border: 1px solid #ccc;height: 34px;" value="<?=$sh_user_name?>"> </td>
							
							</tr>
							<tr>
								<td>
									委托人：</td>
								<td><input type="text" name="wtrname" style="width: 200px;border: 1px solid #ccc;height: 34px;" value="<?=$wtrname?>">
								</td>
								<td>
									委托单位：</td>
								<td><input type="text" name="wtdw" style="width: 200px;border: 1px solid #ccc;height: 34px;" value="<?=$wtdw?>"> 
								</td>
								
							</tr>
							<tr>
								<td>
									<span>中文项目名称：</td>
								<td><input type="text" name="xmmc" style="width: 200px;border: 1px solid #ccc;height: 34px;" value="<?=$xmmc?>"> </span>
								</td>
								<td>
									<span>外文项目名称：</td>
								<td><input type="text" name="xmmcen" style="width: 200px;border: 1px solid #ccc;height: 34px;" value="<?=$xmmcen?>"> </span>
								</td>
							</tr>
							<tr>
								<td>
									<span style="float: left;margin-top: 5px;">委托项目时间 晚于（大于等于）</span></td>
								<td>
									<input type="text" id="B_number1" class="form-control width20" onClick="WdatePicker()" name="intime_13starttime" value="{$intime_13starttime}">
								</td>
								<td>
									<span style="margin-left: 5px;float: left;margin-top: 5px;">早于（小于等于）</span></td>
								<td>
									<input type="text" id="B_number2" class="form-control width20" onClick="WdatePicker()" name="intime_13endtime" value="{$intime_13endtime}">
								</td>
							</tr>
							<tr>
								<td>
									<span style="float: left;margin-top: 5px;">完成项目时间 晚于（大于等于）</span></td>
								<td>
									<input type="text" id="B_number1" class="form-control width20" onClick="WdatePicker()" name="intimestarttime" value="{$intimestarttime}">
								</td>
								<td>
									<span style="margin-left: 5px;float: left;margin-top: 5px;">早于（小于等于）</span></td>
								<td>
									<input type="text" id="B_number2" class="form-control width20" onClick="WdatePicker()" name="intimeendtime" value="{$intimeendtime}">
								</td>
							</tr>
							<tr>
								<td>&nbsp;</td>
							</tr>
							
							<tr>
								<td></td>
								<td></td>
								<td></td>
								<td>
									<button type="submit" class="action-button">查询</button>
								</td>
								
							</tr>
						</table>
					</div>
                </form>
				<if condition="count($g_arr) gt 0">
				<div style="height:40px;margin:10px 0;width:100%;word-wrap:break-word">
				重复查新号：{$g_arr}
				</div>
				</if>
            </div>
			
            <div class="row">
                <div class="col-lg-12">
                    <div class="smart-widget widget-green">
                        <div class="smart-widget-header row ">
                            <span class="smart-widget-option">
                                <span class="refresh-icon-animated">
                                    <i class="fa fa-spinner fa-spin" style="color:#fff"></i>
                                </span>
                                <a href="#" class="widget-toggle-hidden-option">
                                </a>
                                <a href="#" class="widget-collapse-option" data-toggle="collapse">
                                </a>
                                <a href="#" class="widget-refresh-option">
                                </a>
                            </span>
                        </div>
                        <div class="smart-widget-inner table-responsive">
                            <div class="smart-widget-hidden-section">
                                <ul class="widget-color-list clearfix">
                                    <li style="background-color:#20232b;" data-color="widget-dark"></li>
                                    <li style="background-color:#4c5f70;" data-color="widget-dark-blue"></li>
                                    <li style="background-color:#23b7e5;" data-color="widget-blue"></li>
                                    <li style="background-color:#1fb5ac;" data-color="widget-green"></li>
                                    <li style="background-color:#edbc6c;" data-color="widget-yellow"></li>
                                    <li style="background-color:#fbc852;" data-color="widget-orange"></li>
                                    <li style="background-color:#e36159;" data-color="widget-red"></li>
                                    <li style="background-color:#7266ba;" data-color="widget-purple"></li>
                                    <li style="background-color:#f5f5f5;" data-color="widget-light-grey"></li>
                                    <li style="background-color:#fff;" data-color="reset"></li>
                                </ul>
                            </div>
                            <table class="table table-striped no-margin">
                                <thead>
                                <tr>
                                    <th class="text-center">序号</th>
                                    <th class="text-center">项目名称</th>
                                    <th class="text-center">查新号</th>
                                    <th class="text-center">委托人</th>
                                    <th class="text-center">委托日期</th>
                                    <th class="text-center">已收费用</th>
									<th class="text-center">查新员</th>
									<th class="text-center">审核员</th>
                                    <th class="text-center">查新报告</th>
									<th class="text-center">合同</th>
									<th class="text-center">查新委托书</th>
                                    <th class="text-center">处理状态</th>
                                </tr>
                                </thead>
                                <tbody>
								
                                <if condition="count($_list) gt 0">
                                <volist name="_list" id="vo" key="key" >
                                <tr>
                                    <td style="">{$key+$num}</td>
                                    <td style="text-align: left">
                                        <div class="more-wrapper">
                                            <span class="mingchen" <?php if($vo['chongfu']) echo "title='$vo[chongfu]'";?>>{$vo.xmmc}</span>
                                            <neq name="vo.process_id" value="-2">

                                            <div style="display:none;" class="pulldown action-list">
                                                <div class="content">
                                                    <foreach name="vo.menu_conf" item="vo_menu" >
												<span class="li">
												<if condition="$menu_conf[$vo_menu]['control_type'] eq 'tj'">
                                                    <a title="{$menu_conf[$vo_menu]['title']}" url="{:U('Task/ajax_control')}?action=tj_kjcx_contents&form[menu_id]={$vo_menu}&form[task_id]={$vo['id']}"  class="ajax-get confirm">
                                                        <elseif  condition="$menu_conf[$vo_menu]['control_type'] eq 'fc'" />
                                                        <a title="{$menu_conf[$vo_menu]['title']}" onclick="open_fc('{$menu_conf[$vo_menu]['js_fun_param']}',{$menu_conf[$vo_menu]['id']},{$vo['id']})" class="thickbox " url="{:U('Task/myTask')}#TB_inline?height=300&width=550&inlineId=myOnPageContent" >
                                                            <elseif  condition="$menu_conf[$vo_menu]['control_type'] eq 'link'" />
                                                            <assign name="js_fun" value="$menu_conf[$vo_menu]['js_fun']" />
                                                            <a href="__URL__/{$js_fun}/id/{$vo['id']}" target="_self">
                                                                <elseif  condition="$menu_conf[$vo_menu]['control_type'] eq 'link_blank'" />
                                                                <assign name="js_fun" value="$menu_conf[$vo_menu]['js_fun']" />
                                                                <a href="{$js_fun}/id/{$vo['id']}" target="_blank">
                                                                    <elseif  condition="$menu_conf[$vo_menu]['control_type'] eq 'ch'" />
                                                                    <a title="{$menu_conf[$vo_menu]['title']}" url="{:U('Task/ajax_control')}?action=cx_chedan&id={$vo['id']}" class="ajax-get confirm">
                                                                        <else />
                                                                        <a href="#">
                                                </if>
												{$menu_conf[$vo_menu]['title']}
                                                    </a>

												</span>
                                                    </foreach>
                                                </div>
                                            </div>
                                                <span class="more"></span>
                                        </neq>
                                        </div>
                                    </td>
                                    <td>{$vo.cxh}</td>
                                    <td>{$vo.wtrname}</td>
                                    <td title="{$vo.intime}">{$vo.intime|substr=0,-8}</td>
                                    <td>{$vo.zfy}</td>
									<td>{$vo.b_cx_user_name}</td>
									<td>{$vo.c_sh_user_name}</td>
                                    <td>
                                        <if condition="$vo['cx_file_ids']">
                                            <foreach name="vo.fileId" item="file" key="k">
                                                <a href="{:U('Task/down_file',array('file_id'=>$file['fid']))}"><img src="__IMG__/unit/baogao.png" width='17px;' hright="17px;"></a>&nbsp;
                                            </foreach>
                                            <else/>
                                            <if condition=" $vo['process_id'] eq 17">
                                                <if condition="$vo['date'] eq 0">
                                                    <!-- <a href="{:U('Task/report',array('id'=>$vo['id']))}"><img src="__IMG__/unit/baogao.png" width='17px;' hright="17px;"></a>-->
                                                    <else/>
                                                    离报告上传还剩<font color="blue">{$vo['date']-1}</font>天
                                                </if>
                                            </if>
                                        </if>
                                    </td>
									<td>
                                       <a href="{:U('Institution/Task/fill_report/sctype/99',array('id'=>$vo['id']))}"><img src="__IMG__/unit/baogao.png" width='17px;' height="17px;"></a>       
                                     </td>
									<td>
                                       <a href="{:U('Institution/Task/fill_report/sctype/1',array('id'=>$vo['id']))}"><img src="__IMG__/unit/baogao.png" width='17px;' height="17px;"></a>       
                                     </td>
                                    <td>
                                        <eq name="vo.process_id" value="-2">
                                            <a href="{:U('Task/call',array('id'=>$vo['id']))}">抢单</a>
                                            <!--<if condition="$vo.department_id neq 0">-->
                                            <!--<a href="{:U('Task/info',array('id'=>$vo['id']))}">  撤单</a>-->
                                            <!--</if>-->
                                            <else/>
											<?php
											if($vo['process_id'] == 10)
											{
											?>
											<span title="{$vo.qrneirong}" class="show_baogao" style = "cursor:pointer"><font color="blue">
                                            {$vo.process_id|getTitleByProcessId=$depart}</font>
											</span>
											<?php
											}else{
											?>
											{$vo.process_id|getTitleByProcessId=$depart}
											<?php
											}
											?>
                                        </eq>

                                    </td>
                                </tr>
                                </volist>
                                    <else />
                                    <tr><td colspan="8">暂无数据显示!</td></tr>
                                    </if>
                                </tbody>
                            </table>
			
                            <div class="choose-page row">
                                {$_page}
                            </div>
                        </div><!-- ./smart-widget-inner -->
                    </div><!-- ./smart-widget -->
                </div><!-- ./col -->
            </div><!-- ./row -->
        </div><!-- ./padding-md -->
    </div><!-- /main-container -->
    <include file="Public:foot" />
</div><!-- /wrapper -->
<include file="Public/base_fc" />
<a href="#" class="scroll-to-top hidden-print"><i class="fa fa-chevron-up fa-lg"></i></a>
</body>
</html>
<block name="script">
    <script type="text/javascript" src="__PUBLIC__/js/ajaxfileupload.js"></script>

    <script>
        $(function(){
            highlight_nav2('__SELF__');
        })
        $('.more-wrapper').hover(
                function () {
                    $(this).find(".action-list").show();
                },
                function () {
                    $(this).find(".action-list").hide();
                }
        );
    </script>
</block>
